var mongoose = require('mongoose')
var Schema = mongoose.Schema;

var productSchema = new Schema({
    "username":{
        type:String,
        required:true
    },
    "password":{
        type:String,
        required:true
    },
    "status":{
        type:Number,
        enum:[0,1],     //0-面试者 1-面试官
    },
    "intro":{
        type:String,
        default:'好家伙啥也没说'
    },
    "gender":{
        type:Number,
        enum:[0,1,2],     //0-女 1-男 2-未知
        default:2
    }
});

module.exports=mongoose.model('users_datas',productSchema);